<{include file="public/header.tpl"}>
<div id="page-wrapper">
	<div class="row">
        <div class="col-md-6">
            <a href="<{$app}>/flink/add" class="btn btn-success">添加链接</a>
        </div>
        <div class="col-md-6">
           
            <div class="form-group input-group">
                <input type="text" class="form-control" name="key" placeholder="输入链接标题或者地址关键词搜索">
                <span class="input-group-btn">
                  <button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
                </span>
            </div>
        </div>
    </div>
    <{ include file="public/title.tpl" }>
    <form  method="post" action="<{$url}>/order" >
		<ul class="list-group">
		<table class="table table-hover table-striped">
	        <thead>
	            <tr>
	                <th>网站名称</th>
	                <th>网站LOGO</th>
	                <th>联系人</th>
	                <th>添加时间</th>
	                <th>操作</th>
	            </tr>
	        </thead>
	        <tbody>
	      		 <{ section name=doc loop=$links }>	
	            <tr>
	                <td><input type="text" name="ord[]" style="width:20px" maxlength="3" value="<{ $links[doc].ord }>">&nbsp;<a href="<{$links[doc].url}>" target="_blank"><{ $links[doc].webname }></a> 
	                </td>
	                <td><input type="hidden" name="ids[]" value="<{ $links[doc].id }>">
	                <img height="30" src="<{$public}>/uploads/logos/<{ $links[doc].logo}>"></td>
	                <td><{ $links[doc].rname}></td>
	                <td><{ $links[doc].dtime|date_format:"%Y-%m-%d" }></td>
	                <td>
	                【<a href="<{$url}>/mod/id/<{ $links[doc].id }>">修改</a>】
					【<a onclick="return confirm('确定要删除友情链接<{ $links[doc].webname }>吗？')" href="<{$url}>/del/id/<{ $links[doc].id }>">删除</a>】</td>
	            </tr>
	            <{ sectionelse }>
				<li class="list-group-item">
					暂无友情链接！
				</li>
			    <{ /section }>
	      
	        </tbody>
	      </table>
			<li class="list-group-item">
				<a  style='<{if $smarty.get.display eq "off"}>background:#888;color:white<{/if}>'  href="<{$url}>/index/display/off">不显示</a>&nbsp;|
				<a  style='<{if $smarty.get.display eq "on"}>background:#888;color:white<{/if}>' href="<{$url}>/index/display/on">显示</a>
				<button type="submit" class="btn btn-primary" name="order" >改变显示顺序</button>
			</li>
		</ul>	
    </form>
</div>
<{include file="public/footer.tpl"}>

